
let checkAll = document.querySelectorAll('.checkedAll') // 两个全选按钮

let checked = document.querySelectorAll('.order-nav1 input[checked]')

function addSettle() {
  for (let chk of checkAll) { // chk 每个全选按钮
    chk.addEventListener('click', (ev) => {
      setCheckAll(ev.target.checked)
    })
  }
}

function setCheckAll(bool) {
  checked.forEach(itm => itm.checked = bool)
  checkAll.forEach(itm => itm.checked = bool)
}


addEventListener('load', addSettle)